/*
 * @Author: chengxinwei 499449221@qq.com
 * @Date: 2024-10-28 19:45:52
 * @LastEditors: chengxinwei 499449221@qq.com
 * @LastEditTime: 2024-10-28 21:05:35
 * @FilePath: /steel-arch-ui/src/api/prodCheck.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 获取
export const getList = (parmars) => {
  return request({
    url: '/steel-arch/client/prod/record/check/list',
    params:parmars,
    method: 'get'
  })
}
export const getProd = (params) => {
  return request({
    url: '/steel-arch/client/prod/list',
    params:params,
    method: 'get'
  })
}
export const addProd = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/save',
    data:params,
    method: 'post'
  })
}
export const editProd = (params) => {
  return request({
    url: '/steel-arch/client/prod/task/update',
    data:params,
    method: 'post'
  })
}
export const getDicts = (params) => {
  return request({
    url: '/steel-arch/client/dict/data/list',
    params:params,
    method: 'get'
  })
}

export const getplanList = (parmars) => {
    return request({
      url: '/steel-arch/client/prod/record/getByBatchCode',
      params:parmars,
      method: 'get'
    })
  }
  export const getprolist = (params) => {
    return request({
      url: '/steel-arch/prodType/listProdTypes',
      params:params,
      method: 'get'
    })
  }
  export const addCheck = (params) => {
    return request({
      url: '/steel-arch/client/prod/record/check/add',
      data:params,
      method: 'post'
    })
  }
  export const deleteProd = (params) => {
    return request({
      url: '/steel-arch/client/prod/record/check/delete/'+params,
      method: 'post'
    })
  }
  
  